package com.ph.shopping.facade.product.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Table;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import com.ph.shopping.common.core.base.BaseEntity;

@Table(name="ph_product_property_val")
public class PhProductPropertyVal extends BaseEntity implements Serializable{
    /**
	 * 
	 */
	private static final long serialVersionUID = -6494830790906664318L;

    /** 商品属性id */
	@Column(name="propertyId")
    private Long propertyId;

    /** 商品属性值 */
	@Column(name="content")
	@NotBlank(message="[属性名称]不可为空")
   	@Length(max=168,message="[属性名称]最大长度为168个字符")
    private String content;

    /** 商品id */
	@Column(name="productId")
    private Long productId;

    public Long getPropertyId() {
        return propertyId;
    }

    public void setPropertyId(Long propertyId) {
        this.propertyId = propertyId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }
}